package com.example.dsplatform.Dao.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.dsplatform.pojo.Entity.User;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.ResultMap;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;


import java.util.List;
import java.util.Map;

@Component
@Repository
public interface UserMapper extends BaseMapper<User> {
    Map<String, Object> selectByName(String username);

    /**
     * 方法说明 根据权限名称去查询对应用户
     * @param perm
     * @return
     */
    List<String> selectUserByPerm(String perm);

    /**
     * 方法说明 查询状态
     * @param id
     * @param username
     * @param identity
     * @return
     */
    String select_State(String id,String username,String identity);

    List<String> active_State(String id,String username,String identity);

    /*int updateById(User user);*/
    List<String> setPasswordByPhone(String phone,String password);
    String selectbyPhone (String phone);

    List<String> selectUser_Role();
    List<String> selectByUID(String id);

    void updateEmail(String id,String email);

}


